#include <iostream>
#include <cmath>

using namespace std;

int main()
{
	int n;
	double x, y;
	cin>>n;
	int i = 0;
	while(i++ < n)
	{
		cin>>x>>y;
		cout<<"Property "<<i<<": This property will begin eroding in year "<<int(1.0/2*(x*x+y*y)*4*atan(1.0)/50)+1<<endl;
	}
	cout<<"END OF OUTPUT."<<endl;
}
